package com.cristina.attention.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cristina.attention.entity.Group;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author by Attention
 * @Classname GroupMapper
 * @Date 2021/12/6
 */
@Mapper
public interface GroupMapper extends BaseMapper<Group> {

    /**
     * 根据useId 反差所在群聊
     * @param userId
     * @return
     */
    List<Group> findGroupByUserId(Long userId);
}
